package com.zszedu.service;

import com.zszedu.pojo.Page;
import com.zszedu.pojo.Product;

import java.util.List;

public interface ProductService {
    Double getAvgRate();

    Integer querySum(Integer type);

    Product queryByTypeAndCycle(Integer type,Integer cycle);

    List queryByTypeAndStatus(Integer type,Integer limit);

    Page queryPage(Integer type,Integer page);

    List PageData(Integer type,Integer start,Integer pageSize);

    //根据id查询数据
    Product queryById(Integer id);

    void scanFullProduct();

    List<Product> queryFullProduct();
}
